package edu.xidian.bdilab.jrbigdata.controller;

/**
 * @ClassName SystemException
 * @Description TODO
 * @Author tuantuan
 * @Date 2019/3/21 上午10:13
 * @Version 1.0
 * @Attention Copyright (C), 2004-2019, BDILab, XiDian University
 **/
public class SystemException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    /**
     * 异常编码
     */
    private String code;

    /**
     * 信息描述
     */
    private String message;

    public SystemException(String code,String message){
        super(message);
        this.code = code;
    }

    public SystemException(String code,Throwable cause){
        super(cause);
        this.code = code;
    }

    public SystemException(String code,String message,Throwable cause){
        super(message,cause);
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
